lcPaint_DrawImage Home

Draws a raster image.

 BOOL lcPaint_DrawImage (
   HANDLE hLcWnd,
   HANDLE hImage,
   double X,
   double Y,
   double PixelSize,
   int TranspMode,
   int TVal,
   HANDLE hPtbuf
 );

Parameters
hLcWnd
  Handle to LiteCAD graphics window.
hImage
  Handle to raster image.
X Y
  Image insertion point, left-bottom corner position in a drawing.
PixelSize
  Defines image scale on a drawing coordinate space, units per pixel.
TranspMode
  Image transparency mode:
0 - no transparency,
1 - one color is transparent,
2 - transparent image (alpha blending)
TVal
  The meaning depends on TranspMode value:
0 - ignored,
1 - transparent color (COLORREF),
2 - alpha value (1-255)
hPtbuf
  Defines clipping polygon. Handle to points buffer or NULL if clipping is not used.
Points coordinates have range 0.0-1.0, where X=0.0, Y=0.0 is left-bottom corner of image rectangle, X=1.0, Y=1.0 is right-top corner or image rectangle.

Return Value

  If the function succeeds, the return value is nonzero (TRUE).

See Also

  lcPaint_DrawImage2